import { axios } from '@/utils/request'


export function getTokenAPI(data) {
  return axios({
    url: `api/request_token`,
    method: 'post',
    data
  })
}

export function uploadAPI(data) {
  return axios({
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    url: `api/upload-materials-file`,
    method: 'post',
    data
  })
}